package com.it.gmall.product.client;

import com.it.gmall.model.product.*;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 通过sentinel进行降级
 * 降级处理
 */
@Component
public class DegradeProductFeignClient implements ProductFeignClient {
    @Override
    public List<BaseCategoryView> getBaseCategoryViewList() {
        return null;
    }

    @Override
    public List<SkuAttrValue> getSearchAttrList(long skuId) {
        return null;
    }

    @Override
    public BaseTrademark getBaseTrademark(long tmId) {
        return null;
    }

    @Override
    public SkuInfo getSkuInfo(long skuId) {
        SkuInfo skuInfo = new SkuInfo();
        return skuInfo;
    }

    @Override
    public BigDecimal getSkuPrice(long skuId) {
        return null;
    }

    @Override
    public BaseCategoryView getBaseCategoryView(long category3Id) {
        return null;
    }

    @Override
    public List<SpuSaleAttr> getSpuSaleAttrListCheckBySku(long skuId, long spuId) {
        return null;
    }

    @Override
    public Map getSkuValueIdsMap(long spuId) {
        return null;
    }
}
